From: Ken Raeburn Date: Fri, 19 Jul 2002 14:26:53 +0000 (+0000) Subject: (BCOPY_SHORT): Source pointer now points to const. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~56073 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=a9fb257eeaf98a488cace0453490cc5863a600c6;p=emacs.git (BCOPY_SHORT): Source pointer now points to const. --- diff --git a/src/charset.h b/src/charset.h index 58e8f3dfb9d..2b58f88f840 100644 --- a/src/charset.h +++ b/src/charset.h @@ -826,7 +826,8 @@ extern Lisp_Object Vauto_fill_chars; #define BCOPY_SHORT(from, to, len) \ do { \ int i = len; \ - unsigned char *from_p = from, *to_p = to; \ + const unsigned char *from_p = from; \ + unsigned char *to_p = to; \ while (i--) *to_p++ = *from_p++; \ } while (0)